﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="true" 
     CodeFile="Default.aspx.cs" Inherits="_Default"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    
    <h1>
        Confira as Ofertas da Sport Store!</h1>
<p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" AllowPaging="True" DataKeyNames="id" 
            BorderStyle="None" BorderWidth="0px" GridLines="None" PageSize="3">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="id" 
                    DataNavigateUrlFormatString="ViewProduto.aspx?id={0}" 
                    DataTextField="nome" />
                <asp:BoundField DataField="preco" SortExpression="preco" />
                <asp:ImageField DataImageUrlField="miniatura">
                </asp:ImageField>
            </Columns>
            <EditRowStyle BorderStyle="None" />
            <EmptyDataRowStyle BorderStyle="None" />
            <HeaderStyle BorderStyle="None" />
            <PagerStyle BorderStyle="None" />
            <RowStyle BorderStyle="None" />
            <SelectedRowStyle BorderStyle="None" />
            <SortedAscendingCellStyle BorderStyle="None" />
            <SortedAscendingHeaderStyle BorderStyle="None" />
            <SortedDescendingCellStyle BorderStyle="None" />
            <SortedDescendingHeaderStyle BorderStyle="None" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT [nome], [preco], [miniatura], [id] FROM [produto]">
        </asp:SqlDataSource>
</p>
   
    
</asp:Content>

